// src/api/generateVideoAPI.ts

import { request } from "../request";

const generateVideoAPI = async (prompt: string) => {
    return request("https://api.siliconflow.cn/v1/video/submit", {
        method: "post",
        headers: {
            Authorization: "Bearer sk-lghnjmlspvtlhfhnbamhymohfztxbzhmcylqujcgbviiecaz", // 请替换为你的实际 token
            "Content-Type": "application/json",
        },
        data: {
            model: "Wan-AI/Wan2.1-T2V-14B",
            prompt,
            image_size: "1280x720",
        },
    });
};

export default generateVideoAPI;
